﻿@{
    Layout = null;
}
<script src="~/Scripts/MGJJS/CodeManage/SearchCode.js"></script>
@*身份码查询*@

<div class="mtlr15">
    <div class="row">
        <div class="col-lg-4 col-md-4 col-sm-4 col-lg-offset-8 col-md-offset-8 col-sm-offset-8">
            <div class="input-group">
                <input type="text" class="form-control" id="Csearch" placeholder="防伪码/物流码" onkeydown="if (event.keyCode == 13) { $.MGJ.SearchCode.Ajax_SearchCodeList(); }">
                <span class="input-group-addon" onclick="$.MGJ.SearchCode.Ajax_SearchCodeList();">
                    <span class="glyphicon glyphicon-search"></span>
                </span>
            </div>
        </div>
    </div>

    <div id="Table">
        <div class="overflow">
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th hidden>ID</th>
                        <th>公司名称</th>
                        <th>机构代码</th>
                        <th>防伪码</th>
                        <th>物流码</th>
                        @*<th>操作人</th>
                            <th>操作时间</th>*@
                    </tr>
                </thead>
                <tbody id="SearchCodetable" style="display:none" binding="{'emptyHtml': Code_EmptyHtml}">
                    <tr>
                        <td hidden binding="{'text':'ID'}"></td>
                        <td binding="{'text':'EnterpriseName'}"></td>
                        <td binding="{'text':'Code'}"></td>
                        <td binding="{'text':'Fw_CodeSecret'}"></td>
                        <td binding="{'text':'Wl_Code'}"></td>
                        @*<td binding="{'text':'ChangeLoginName'}"></td>
                <td binding="{'text':'ChangeDate','textHandle':'datetime'}"></td>  *@
                    </tr>
                </tbody>
            </table>
        </div>
        <div id="ShoppingPager"></div>
    </div>
</div>

<script>
    var ColspanNub = $(".table.table-hover.table-bordered").find("tr").children("td").length
    window.Code_EmptyHtml = '<tr><td colspan="' + ColspanNub + '"><p class="no-result">无符合条件的数据结果</p></td></tr>';
    $.MGJ.SearchCode.Ajax_SearchCodeList(1,"Initing");
</script>